package initialize

import (
	"gorm.io/gorm"
	"time"
	"vue-admin-server/model/product"
)

var initdb = false

func initChipData(db *gorm.DB) {
	if !initdb {
		return
	}
	// 初始化数据
	chipSpec := product.ChipSpec{
		Supplier:     "OSRAM",
		ChipNo:       "2型-915-30W-230um",
		RaycusNo:     "2型",
		IncomingTime: time.Now(),
	}
	_ = db.Create(&chipSpec)

	// 来料规格书
	_1 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "threshold_current", TestCondition: "25℃", MinValue: "1.4", MaxValue: "1.6", TypicalValue: "1.5"}
	_2 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "operating_current", TestCondition: "25℃", MinValue: "", MaxValue: "", TypicalValue: "30"}
	_3 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "operating_power", TestCondition: "25℃", MinValue: "29", MaxValue: "31", TypicalValue: "30"}
	_4 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "operating_voltage", TestCondition: "25℃", MinValue: "1.6", MaxValue: "1.8", TypicalValue: "1.7"}
	_5 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "slope_efficiency", TestCondition: "25℃", MinValue: "0.8", MaxValue: "1.2", TypicalValue: "1"}
	_6 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "total_conversion_efficiency", TestCondition: "25℃", MinValue: "60", MaxValue: "65", TypicalValue: "62"}
	_7 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "standard_pulse_center_wavelength", TestCondition: "25℃", MinValue: "", MaxValue: "", TypicalValue: "905"}
	_8 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "beam_divergence_parallel", TestCondition: "25℃", MinValue: "9.5", MaxValue: "11.5", TypicalValue: "10"}
	_9 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "beam_divergence_perpendicular", TestCondition: "25℃", MinValue: "50", MaxValue: "55", TypicalValue: "52"}
	_10 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "spectral_bandwidth", TestCondition: "25℃", MinValue: "4.5", MaxValue: "5.5", TypicalValue: "5"}
	_11 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "polarization_mode", TestCondition: "25℃", MinValue: "", MaxValue: "", TypicalValue: "TEM"}
	_12 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "photoelectric_parameter", ParameterID: "polarization", TestCondition: "25℃", MinValue: "95", MaxValue: "97", TypicalValue: "95"}
	_13 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "structure_parameter", ParameterID: "resonator_length", TestCondition: "", MinValue: "", MaxValue: "", TypicalValue: "4500"}
	_14 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "structure_parameter", ParameterID: "thickness", TestCondition: "", MinValue: "", MaxValue: "", TypicalValue: "115"}
	_15 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "structure_parameter", ParameterID: "width", TestCondition: "", MinValue: "", MaxValue: "", TypicalValue: "400"}
	_16 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "structure_parameter", ParameterID: "emitter_width", TestCondition: "", MinValue: "", MaxValue: "", TypicalValue: "230"}
	_17 := product.ChipParameterValue{ReportID: chipSpec.ID, ReportType: product.ReportTypeSpec, ItemID: "structure_parameter", ParameterID: "die_number", TestCondition: "", MinValue: "", MaxValue: "", TypicalValue: "30"}
	_ = db.Create(&_1)
	_ = db.Create(&_2)
	_ = db.Create(&_3)
	_ = db.Create(&_4)
	_ = db.Create(&_5)
	_ = db.Create(&_6)
	_ = db.Create(&_7)
	_ = db.Create(&_8)
	_ = db.Create(&_9)
	_ = db.Create(&_10)
	_ = db.Create(&_11)
	_ = db.Create(&_12)
	_ = db.Create(&_13)
	_ = db.Create(&_14)
	_ = db.Create(&_15)
	_ = db.Create(&_16)
	_ = db.Create(&_17)

	cosR := product.CosReport{
		ChipID:   chipSpec.ID,
		TestTime: time.Now(),
	}
	_ = db.Create(&cosR)

	// COS
	cos_1 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "chip_surface", ParameterID: "p_side", TestCondition: "10X", MinValue: "", MaxValue: "", TypicalValue: "OK"}
	cos_2 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "chip_surface", ParameterID: "n_side", TestCondition: "10X", MinValue: "", MaxValue: "", TypicalValue: "OK"}
	cos_3 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "chip_surface", ParameterID: "ar", TestCondition: "200X", MinValue: "", MaxValue: "", TypicalValue: "白纹"}
	cos_4 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "chip_surface", ParameterID: "hr", TestCondition: "200X", MinValue: "", MaxValue: "", TypicalValue: "锯齿"}
	cos_5 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "eutectic_quality", ParameterID: "front_profile", TestCondition: "50X", MinValue: "", MaxValue: "", TypicalValue: "熔融充分，无颗粒"}
	cos_6 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "eutectic_quality", ParameterID: "head_profile", TestCondition: "50X", MinValue: "", MaxValue: "", TypicalValue: "无上溢，虚焊"}
	cos_7 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "eutectic_quality", ParameterID: "side_profile", TestCondition: "50X", MinValue: "", MaxValue: "", TypicalValue: "芯片与倒影之间无空隙"}
	cos_8 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "threshold_current", TestCondition: "20℃", MinValue: "1.4", MaxValue: "1.6", TypicalValue: "1.5"}
	cos_9 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "operating_current", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "30"}
	cos_10 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "operating_power", TestCondition: "20℃", MinValue: "29", MaxValue: "31", TypicalValue: "30"}
	cos_11 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "operating_voltage", TestCondition: "20℃", MinValue: "1.6", MaxValue: "1.8", TypicalValue: "1.7"}
	cos_12 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "slope_efficiency", TestCondition: "20℃", MinValue: "0.8", MaxValue: "1.2", TypicalValue: "1"}
	cos_13 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "total_conversion_efficiency", TestCondition: "20℃", MinValue: "60", MaxValue: "65", TypicalValue: "62"}
	cos_14 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "beam_divergence_parallel", TestCondition: "20℃", MinValue: "9.5", MaxValue: "11.5", TypicalValue: "10"}
	cos_15 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "beam_divergence_perpendicular", TestCondition: "20℃", MinValue: "50", MaxValue: "55", TypicalValue: "52"}
	cos_16 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "spectral_bandwidth", TestCondition: "20℃", MinValue: "4.5", MaxValue: "5.5", TypicalValue: "5"}
	cos_17 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "operating_wavelength", TestCondition: "20℃", MinValue: "910", MaxValue: "920", TypicalValue: "915"}
	cos_18 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "subtracted_wavelength", TestCondition: "20℃", MinValue: "14", MaxValue: "16", TypicalValue: "15"}
	cos_19 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "parallel_optical_quality", TestCondition: "20℃", MinValue: "8.5", MaxValue: "9.5", TypicalValue: "9"}
	cos_20 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "photoelectric_parameter", ParameterID: "polarization", TestCondition: "20℃", MinValue: "95", MaxValue: "97", TypicalValue: "95"}
	cos_21 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "operating_current", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "30"}
	cos_22 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "operating_power", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "28"}
	cos_23 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "subtracted_power", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "-2"}
	cos_24 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "operating_wavelength", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "916"}
	cos_25 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "subtracted_wavelength", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "1"}
	cos_26 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "operating_voltage", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "1.7"}
	cos_27 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "subtracted_voltage", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "0"}
	cos_28 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "thermal_rollover_current", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "48"}
	cos_29 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "thermal_saturation_current", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "50"}
	cos_30 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "junction_temperature", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "55"}
	cos_31 := product.ChipParameterValue{ReportID: cosR.ID, ReportType: product.ReportTypeCOS, ItemID: "reliability_test", ParameterID: "thermal_resistance", TestCondition: "20℃", MinValue: "", MaxValue: "", TypicalValue: "1.5"}
	_ = db.Create(&cos_1)
	_ = db.Create(&cos_2)
	_ = db.Create(&cos_3)
	_ = db.Create(&cos_4)
	_ = db.Create(&cos_5)
	_ = db.Create(&cos_6)
	_ = db.Create(&cos_7)
	_ = db.Create(&cos_8)
	_ = db.Create(&cos_9)
	_ = db.Create(&cos_10)
	_ = db.Create(&cos_11)
	_ = db.Create(&cos_12)
	_ = db.Create(&cos_13)
	_ = db.Create(&cos_14)
	_ = db.Create(&cos_15)
	_ = db.Create(&cos_16)
	_ = db.Create(&cos_17)
	_ = db.Create(&cos_18)
	_ = db.Create(&cos_19)
	_ = db.Create(&cos_20)
	_ = db.Create(&cos_21)
	_ = db.Create(&cos_22)
	_ = db.Create(&cos_23)
	_ = db.Create(&cos_24)
	_ = db.Create(&cos_25)
	_ = db.Create(&cos_26)
	_ = db.Create(&cos_27)
	_ = db.Create(&cos_28)
	_ = db.Create(&cos_29)
	_ = db.Create(&cos_30)
	_ = db.Create(&cos_31)

	testR := product.TestReport{
		ChipID:     chipSpec.ID,
		TestTime:   time.Now(),
		ModuleType: "500W976",
	}
	_ = db.Create(&testR)
	// 器件验证结果
	test_1 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "fac_coupling", ParameterID: "centroid_y", TestCondition: "", MinValue: "0.715", MaxValue: "0.902", TypicalValue: "0.807"}
	test_2 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "fac_coupling", ParameterID: "width_of_centroid_y", TestCondition: "", MinValue: "1.5", MaxValue: "2.5", TypicalValue: "2"}
	test_3 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "reflector_coupling", ParameterID: "nonlens_power", TestCondition: "", MinValue: "", MaxValue: "", TypicalValue: "30"}
	test_4 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "reflector_coupling", ParameterID: "gluecontacted_power", TestCondition: "", MinValue: "27", MaxValue: "29", TypicalValue: "28"}
	test_5 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "reflector_coupling", ParameterID: "coupling_efficiency", TestCondition: "", MinValue: "82", MaxValue: "87", TypicalValue: "85"}
	test_6 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "series_power_test", ParameterID: "operating_current", TestCondition: "25℃", MinValue: "", MaxValue: "", TypicalValue: "30"}
	test_7 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "series_power_test", ParameterID: "operating_power", TestCondition: "25℃", MinValue: "475", MaxValue: "525", TypicalValue: "500"}
	test_8 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "series_power_test", ParameterID: "operating_voltage", TestCondition: "25℃", MinValue: "36", MaxValue: "40", TypicalValue: "38"}
	test_9 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "series_power_test", ParameterID: "operating_wavelength", TestCondition: "25℃", MinValue: "913", MaxValue: "917", TypicalValue: "915"}
	test_10 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "series_power_test", ParameterID: "subtracted_wavelength", TestCondition: "25℃", MinValue: "14", MaxValue: "16", TypicalValue: "15"}
	test_11 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "reliability_test", ParameterID: "thermal_cycle", TestCondition: "零下40℃至85℃", MinValue: "495", MaxValue: "505", TypicalValue: "500"}
	test_12 := product.ChipParameterValue{ReportID: testR.ID, ReportType: product.ReportTypeTest, ItemID: "final_test", ParameterID: "final_power", TestCondition: "25℃", MinValue: "497", MaxValue: "507", TypicalValue: "500"}
	_ = db.Create(&test_1)
	_ = db.Create(&test_2)
	_ = db.Create(&test_3)
	_ = db.Create(&test_4)
	_ = db.Create(&test_5)
	_ = db.Create(&test_6)
	_ = db.Create(&test_7)
	_ = db.Create(&test_8)
	_ = db.Create(&test_9)
	_ = db.Create(&test_10)
	_ = db.Create(&test_11)
	_ = db.Create(&test_12)

	reliabilityR := product.ReliabilityReport{
		ChipID:     chipSpec.ID,
		TestTime:   time.Now(),
		ModuleType: "500W976",

		// 测试结果
		// 工作条件（Operating Condition）
		RatedCurrent:                   "25",
		RatedPower:                     "25",
		RatedJunctionTemperature:       "65",
		RatedJunctionTemperatureKelvin: "338.15",
		// 加速条件（Acceleration Condition）
		BurnInCurrent:                   "30",
		BurnInPower:                     "30",
		BurnInJunctionTemperature:       "88",
		BurnInJunctionTemperatureKelvin: "361.15",
		// 常数项（Constant term）
		ActivationEnergy:  "0.45",
		XFactor:           "4.3",
		YFactor:           "0",
		BoltzmannConstant: "0.00008617",
		// 加速因子（AF）
		CurrentAccelerationFactor:     "2.19017773",
		PowerAccelerationFactor:       "1",
		TemperatureAccelerationFactor: "2.67387618",
		TotalAccelerationFactor:       "5.85626405",
		// 卡方值（X2）
		ConfidenceCoefficient: "0.9",
		InvalidNumber:         "1",
		ChiSquare:             "7.77944",
		// 工作寿命（Operating MTBF）
		TotalTestTime:          "10000",
		FailureRate:            "0.000388972",
		MeanTimeBetweenFailure: "2570.879",
		// 加速寿命（Acceleration MTBF）
		AccelerationFactor:     "3",
		RatedFailureRate:       "0.000002",
		AcceleratedFailureRate: "0.000006",
	}
	_ = db.Create(&reliabilityR)

	rd1 := product.ReliabilityData{
		ReportID:      reliabilityR.ID,
		Position:      "未来城",
		Sn:            "A1AR61223YF002",
		Project:       "芯片验证",
		AgingCurrent:  "30",
		State:         "无失效",
		FinalPower:    "501",
		Af:            "5.85",
		TotalTestTime: "7881.6",
	}
	_ = db.Create(&rd1)

	rwd1 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 1, TestTime: time.Date(2022, 1, 1, 15, 10, 01, 0, time.UTC), TestValue: "500"}
	_ = db.Create(&rwd1)
	rwd2 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 2, TestTime: time.Date(2022, 1, 5, 13, 10, 01, 0, time.UTC), TestValue: "495"}
	_ = db.Create(&rwd2)
	rwd3 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 3, TestTime: time.Date(2022, 1, 8, 12, 10, 01, 0, time.UTC), TestValue: "488"}
	_ = db.Create(&rwd3)
	rwd4 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 4, TestTime: time.Date(2022, 1, 15, 11, 10, 01, 0, time.UTC), TestValue: "476"}
	_ = db.Create(&rwd4)
	rwd5 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 5, TestTime: time.Date(2022, 1, 19, 3, 10, 01, 0, time.UTC), TestValue: "515"}
	_ = db.Create(&rwd5)
	rwd6 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 6, TestTime: time.Date(2022, 1, 23, 9, 10, 01, 0, time.UTC), TestValue: "502"}
	_ = db.Create(&rwd6)
	rwd7 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 7, TestTime: time.Date(2022, 1, 28, 10, 10, 01, 0, time.UTC), TestValue: "501"}
	_ = db.Create(&rwd7)
	rwd8 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 8, TestTime: time.Date(2022, 2, 5, 12, 5, 10, 0, time.UTC), TestValue: "498"}
	_ = db.Create(&rwd8)
	rwd9 := product.ReliabilityWeekData{DataID: rd1.ID, Week: 9, TestTime: time.Date(2022, 2, 13, 8, 10, 01, 0, time.UTC), TestValue: "502"}
	_ = db.Create(&rwd9)

	rd2 := product.ReliabilityData{
		ReportID:      reliabilityR.ID,
		Position:      "未来城",
		Sn:            "A1AR61223YF003",
		Project:       "芯片验证",
		AgingCurrent:  "30",
		State:         "一周失效一颗，COS4",
		FinalPower:    "502",
		Af:            "5.85",
		TotalTestTime: "7881.6",
	}
	_ = db.Create(&rd2)

	rd3 := product.ReliabilityData{
		ReportID:      reliabilityR.ID,
		Position:      "左岭",
		Sn:            "A1AR61223YF010",
		Project:       "芯片验证",
		AgingCurrent:  "30",
		State:         "一周失效一颗，COS4",
		FinalPower:    "508",
		Af:            "5.85",
		TotalTestTime: "7881.6",
	}
	_ = db.Create(&rd3)

	rd4 := product.ReliabilityData{
		ReportID:      reliabilityR.ID,
		Position:      "保税区",
		Sn:            "A1AR61223YF012",
		Project:       "芯片验证",
		AgingCurrent:  "30",
		State:         "一周失效一颗，COS7",
		FinalPower:    "511",
		Af:            "5.85",
		TotalTestTime: "7881.6",
	}
	_ = db.Create(&rd4)
}
